﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;

namespace Fast
{
    /// <summary>
    /// 定义一个启动模块
    /// 配置应用程序和中间件
    /// </summary>
    public interface IFastStartup
    {
        /// <summary>
        /// 配置应用程序服务
        /// </summary>
        /// <param name="context"></param>
        void ConfigureServices(ConfigureServicesContext context);

        /// <summary>
        /// 配置应用程序中间件管道
        /// </summary>
        /// <param name="app"></param>
        /// <param name="context"></param>
        void Configure(ConfigureContext context);
    }
}
